package homework.homework_4.transport;

/**
 * @author 朱
 * @date 2019032121:05
 */
public class Company {
    public Car getCar(int type){
        Car car;
        if (type==1){
            return car=new Bus();
        }else if (type==2){
            return car=new Taix();
        }else {
            return null;
        }
    }
}
